package com.ruoyi.system.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 销售订单单头对象 sys_order
 * 
 * @author ruoyi
 * @date 2021-07-01
 */
public class SysOrder extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** Id，自增长 */
    private Long id;

    /** 用户id
     */
    @Excel(name = "用户id ")
    private Long userId;

    /** 订单单号 */
    @Excel(name = "订单单号")
    private String orderNo;

    /** 订单金额(总金额) */
    @Excel(name = "订单金额(总金额)")
    private Long buyPrice;

    /** 优惠总金额，单位：分 */
    @Excel(name = "优惠总金额，单位：分")
    private Long discountPrice;

    /** 物流金额 */
    @Excel(name = "物流金额")
    private Long logisticsPrice;

    /** 最终金额，单位：分 */
    @Excel(name = "最终金额，单位：分")
    private Long presentPrice;

    /** 金额(分) */
    @Excel(name = "金额(分)")
    private Integer payAmount;

    /** 付款时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "付款时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date paymentTime;

    /** 发货时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "发货时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date deliveryTime;

    /** 收货时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "收货时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date receiverTime;

    /** 成交时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "成交时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date closingTime;

    /** 是否退换货 */
    @Excel(name = "是否退换货")
    private Integer hasReturnExchange;

    /** 状态(如果有多个商品分开发货需要全部商品发完才会改变状态) 0、待付款 1、待发货 2、待收货 3、已完成 4、已关闭 */
    @Excel(name = "状态(如果有多个商品分开发货需要全部商品发完才会改变状态) 0、待付款 1、待发货 2、待收货 3、已完成 4、已关闭")
    private String status;

    /** 删除状态 */
    @Excel(name = "删除状态")
    private Integer deleted;

    /** $column.columnComment */
    private String delFlag;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }
    public void setOrderNo(String orderNo) 
    {
        this.orderNo = orderNo;
    }

    public String getOrderNo() 
    {
        return orderNo;
    }
    public void setBuyPrice(Long buyPrice) 
    {
        this.buyPrice = buyPrice;
    }

    public Long getBuyPrice() 
    {
        return buyPrice;
    }
    public void setDiscountPrice(Long discountPrice) 
    {
        this.discountPrice = discountPrice;
    }

    public Long getDiscountPrice() 
    {
        return discountPrice;
    }
    public void setLogisticsPrice(Long logisticsPrice) 
    {
        this.logisticsPrice = logisticsPrice;
    }

    public Long getLogisticsPrice() 
    {
        return logisticsPrice;
    }
    public void setPresentPrice(Long presentPrice) 
    {
        this.presentPrice = presentPrice;
    }

    public Long getPresentPrice() 
    {
        return presentPrice;
    }
    public void setPayAmount(Integer payAmount) 
    {
        this.payAmount = payAmount;
    }

    public Integer getPayAmount() 
    {
        return payAmount;
    }
    public void setPaymentTime(Date paymentTime) 
    {
        this.paymentTime = paymentTime;
    }

    public Date getPaymentTime() 
    {
        return paymentTime;
    }
    public void setDeliveryTime(Date deliveryTime) 
    {
        this.deliveryTime = deliveryTime;
    }

    public Date getDeliveryTime() 
    {
        return deliveryTime;
    }
    public void setReceiverTime(Date receiverTime) 
    {
        this.receiverTime = receiverTime;
    }

    public Date getReceiverTime() 
    {
        return receiverTime;
    }
    public void setClosingTime(Date closingTime) 
    {
        this.closingTime = closingTime;
    }

    public Date getClosingTime() 
    {
        return closingTime;
    }
    public void setHasReturnExchange(Integer hasReturnExchange) 
    {
        this.hasReturnExchange = hasReturnExchange;
    }

    public Integer getHasReturnExchange() 
    {
        return hasReturnExchange;
    }
    public void setStatus(String status) 
    {
        this.status = status;
    }

    public String getStatus() 
    {
        return status;
    }
    public void setDeleted(Integer deleted) 
    {
        this.deleted = deleted;
    }

    public Integer getDeleted() 
    {
        return deleted;
    }
    public void setDelFlag(String delFlag) 
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag() 
    {
        return delFlag;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("userId", getUserId())
            .append("orderNo", getOrderNo())
            .append("buyPrice", getBuyPrice())
            .append("discountPrice", getDiscountPrice())
            .append("logisticsPrice", getLogisticsPrice())
            .append("presentPrice", getPresentPrice())
            .append("payAmount", getPayAmount())
            .append("paymentTime", getPaymentTime())
            .append("deliveryTime", getDeliveryTime())
            .append("receiverTime", getReceiverTime())
            .append("closingTime", getClosingTime())
            .append("hasReturnExchange", getHasReturnExchange())
            .append("remark", getRemark())
            .append("status", getStatus())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .append("deleted", getDeleted())
            .append("delFlag", getDelFlag())
            .toString();
    }
}
